﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Text;

namespace TCPRPCServer
{
    class Program
    {
        static void Main(string[] args)
        {
            System.Runtime.Remoting.Channels.Tcp.TcpServerChannel
                tcpchannels = new System.Runtime.Remoting.Channels.Tcp.TcpServerChannel(8099);
            ChannelServices.RegisterChannel(tcpchannels, false);
            Type t = typeof(TcpImpl);
            RemotingConfiguration.RegisterWellKnownServiceType(t, "hi", WellKnownObjectMode.SingleCall);
            Console.WriteLine("hit to exit");
            Console.ReadLine();

        }
    }
}
